package com.lz.service;

import com.lz.entity.OrderMasterQuery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Created by lz on 2018/8/17.
 */
public interface OrderService {

    /**
     * 创建订单
     */
    OrderMasterQuery createOrder(OrderMasterQuery orderMasterQuery);

    /**
     * 查询单个订单
     */
    OrderMasterQuery findOne(String orderId);

    /**
     * 查询订单列表
     */
    Page<OrderMasterQuery> findList(String openid, Pageable pageable);

    /**
     * 取消订单
     */
    OrderMasterQuery cancelOrder(OrderMasterQuery orderMasterQuery);

    /**
     * 完结订单
     */
    OrderMasterQuery finishOrder(OrderMasterQuery orderMasterQuery);

    /**
     * 支付订单
     */
    OrderMasterQuery paidOrder(OrderMasterQuery orderMasterQuery);

    /**
     * 查询订单列表
     */
    Page<OrderMasterQuery> findList(Pageable pageable);
}
